<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP+JavaBean</title>
</head>
<body>

	<div style="margin:auto; width: 90%">
		<!-- 设置学生信息 -->
		<jsp:useBean id="student" class="com.yiibai.Student">
			<jsp:setProperty name="student" property="name" value="苏小牛" />
			<jsp:setProperty name="student" property="from" value="Haikou" />
			<jsp:setProperty name="student" property="age" value="25" />
		</jsp:useBean>

		<p>
			学生姓名:
			<jsp:getProperty name="student" property="name" />
		</p>

		<p>
			所在地:
			<jsp:getProperty name="student" property="from" />
		</p>

		<p>
			年龄:
			<jsp:getProperty name="student" property="age" />
		</p>
	</div>

</body>
</html>